import React from 'react';
import {BrowserRouter, Switch, Route} from "react-router-dom";
import Login from "../pages/Login/Login";
import NotFound from "../pages/NotFound/NotFound";
import MainRoute from "./MainRoute/MainRoute";
export default ()=>{
	return (
		<BrowserRouter>
			<Switch>
				<Route path="/" component={MainRoute} />
				<Route path="/login" component={Login} />
				<Route path="/404" component={NotFound} />
			</Switch>
		</BrowserRouter>
	);
}
